package com.coocaa.internship.controller;

import com.coocaa.internship.common.ResultData;
import com.coocaa.internship.service.serviceImpl.ProvinceServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: 省份信息控制器
 * @Author: zwh
 * @Date: 2019-07-30
 * @Time: 23:01
 */
@Controller
@RequestMapping("/province")
public class ProvinceController {

    @Autowired
    ProvinceServiceImpl provinceService;

    @RequestMapping(value = "/selectAll", method = RequestMethod.GET)
    @ResponseBody
    public ResultData selectAllProvinces() {
        return provinceService.selectAllProvinces();
    }
}
